﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Glorysoft.EAP.Core.Entities.Socket
{
    /// <summary>
    /// 设备参数采集
    /// </summary>
    public class RequestEdcCollect
    {
        /// <summary>
        /// 实例化请求实体
        /// </summary>
        public EdcCollectRequest Request { get; set; }
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public RequestEdcCollect()
        {
            Request = new EdcCollectRequest();
            Request.Header = new RequestHeader();
            Request.Body = new EdcCollectRequestBody();
        }
    }
    /// <summary>
    /// EAP启动请求实体类
    /// </summary>
    public class EdcCollectRequest : RequestBase
    {
        /// <summary>
        /// 请求Body
        /// </summary>
        public EdcCollectRequestBody Body { get; set; }

    }

    /// <summary>
    /// EdcCollect请求的Body属性
    /// </summary>
    public class EdcCollectRequestBody
    {
        /// <summary>
        /// 设备ID
        /// </summary>
        public string EqpID { get; set; }
        /// <summary>
        /// 参数【名称和值的集合】
        /// </summary>
        public List<EdcCollectParaList> ParaList { get; set; }
    }
    /// <summary>
    /// EdcCollect请求的List集合
    /// </summary>
    public class EdcCollectParaList
    {
        /// <summary>
        /// 参数名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 参数值
        /// </summary>
        public string Value { get; set; }
    }
}
